package com.ruoyi.customer.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.customer.mapper.ErpCustomerInformationMapper;
import com.ruoyi.customer.domain.ErpCustomerInformation;
import com.ruoyi.customer.service.IErpCustomerInformationService;

/**
 * 拓客信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-07-30
 */
@Service
public class ErpCustomerInformationServiceImpl implements IErpCustomerInformationService 
{
    @Autowired
    private ErpCustomerInformationMapper erpCustomerInformationMapper;

    /**
     * 查询拓客信息
     * 
     * @param id 拓客信息主键
     * @return 拓客信息
     */
    @Override
    public ErpCustomerInformation selectErpCustomerInformationById(Long id)
    {
        return erpCustomerInformationMapper.selectErpCustomerInformationById(id);
    }

    /**
     * 查询拓客信息列表
     * 
     * @param erpCustomerInformation 拓客信息
     * @return 拓客信息
     */
    @Override
    public List<ErpCustomerInformation> selectErpCustomerInformationList(ErpCustomerInformation erpCustomerInformation)
    {
        return erpCustomerInformationMapper.selectErpCustomerInformationList(erpCustomerInformation);
    }

    /**
     * 新增拓客信息
     * 
     * @param erpCustomerInformation 拓客信息
     * @return 结果
     */
    @Override
    public int insertErpCustomerInformation(ErpCustomerInformation erpCustomerInformation)
    {
        return erpCustomerInformationMapper.insertErpCustomerInformation(erpCustomerInformation);
    }

    /**
     * 修改拓客信息
     * 
     * @param erpCustomerInformation 拓客信息
     * @return 结果
     */
    @Override
    public int updateErpCustomerInformation(ErpCustomerInformation erpCustomerInformation)
    {
        return erpCustomerInformationMapper.updateErpCustomerInformation(erpCustomerInformation);
    }

    /**
     * 批量删除拓客信息
     * 
     * @param ids 需要删除的拓客信息主键
     * @return 结果
     */
    @Override
    public int deleteErpCustomerInformationByIds(Long[] ids)
    {
        return erpCustomerInformationMapper.deleteErpCustomerInformationByIds(ids);
    }

    /**
     * 删除拓客信息信息
     * 
     * @param id 拓客信息主键
     * @return 结果
     */
    @Override
    public int deleteErpCustomerInformationById(Long id)
    {
        return erpCustomerInformationMapper.deleteErpCustomerInformationById(id);
    }
}
